<template>
  <div id="video-page">
    <div class="video-note">
      <!-- 左侧视频开始 -->
      <div class="left-video">
        <!-- 上部标题开始 -->
        <div class="title-info">
          <span class="title" @click="goLessonInfoPage">
            <span>[Python基础]</span>
            <span>第一章 什么是编程语言</span>
          </span>
          <div class="info">
            <div class="item look-num">
              <i class="bi bi-play-btn"></i>
              <span>123.4万</span>
            </div>
            <div class="item comment-num">
              <i class="el-icon-s-comment"></i>
              <span>2323</span>
            </div>
            <div class="item create-time">
              <span>2022-03-23 23:23:23</span>
            </div>
          </div>
        </div>
        <!-- 上部标题结束 -->
        <!-- 视频组件开始 -->
        <div class="video">
          <video-item />
        </div>
        <!-- 视频组件结束 -->
        <!-- 评论板开始 -->
        <div class="comment-board">
          <comment-board />
        </div>
        <!-- 评论板结束 -->
      </div>
      <!-- 左侧视频结束 -->
      <!-- 右侧笔记开始 -->
      <div class="right-note">
        <!-- 作者信息展示开始 -->
        <div class="author-info-show">
          <user-bar />
        </div>
        <!-- 作者信息展示结束 -->
        <!-- 笔记开始 -->
        <div class="markdown-note">
          <!-- <mark-note/> -->
          <tui-mark-note />
        </div>
        <!-- 笔记结束 -->
        <!-- AI工具开始 -->
        <div class="ai-tools">
          <ai-tool/>
        </div>
        <!-- AI工具结束 -->
        <!-- 课程推荐开始 -->
        <div class="recommend-lesson">
          <recommend-board />
        </div>
        <!-- 课程推荐结束 -->
      </div>
      <!-- 右侧笔记结束 -->
    </div>
  </div>
</template>

<script>
import CommentBoard from "../../components/board/CommentBoard.vue";
import RecommendBoard from "../../components/board/RecommendBoard.vue";
import AiTool from '../../components/commons/AiTool.vue';
import VideoItem from "../../components/commons/VideoItem.vue";
import TuiMarkNote from "../../components/note/TuiMarkNote.vue";
import UserBar from "../../components/user/UserBar.vue";
export default {
  components: {
    VideoItem,
    CommentBoard,
    UserBar,
    TuiMarkNote,
    RecommendBoard,
    AiTool,
  },
  methods:{
    goLessonInfoPage(){
      this.$router.push("/lessonface")
    }
  }
};
</script>

<style scoped>
#video-page .video-note {
  width: 85%;
  margin: 30px auto;
  display: flex;
  display: -webkit-flex;
  justify-content: space-between;
}

#video-page .video-note .left-video {
  width: 65%;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
}

#video-page .video-note .left-video .title-info .title {
  font-size: 18px;
  font-weight: bolder;
  line-height: 30px;
  cursor: pointer;
}

#video-page .video-note .left-video .title-info .title:hover {
  color: #409EFF;
  border-bottom: 2px solid #409EFF; 
}

#video-page .video-note .left-video .title-info .info {
  display: flex;
  display: -webkit-flex;
  justify-content: start;

  font-size: 14px;
  color: gray;
  line-height: 20px;
}
#video-page .video-note .left-video .title-info .info .item {
  margin-right: 10px;
}

#video-page .video-note .right-note {
  width: 30%;
  background-color: transparent;
}

#video-page .video-note .right-note .author-info-show {
  background-color: #fff;
  border-radius: 10px;
}

#video-page .video-note .right-note .markdown-note {
  margin-top: 20px;
  background-color: #fff;
  border-radius: 10px;
}

#video-page .video-note .right-note .recommend-lesson {
  margin-top: 20px;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px 0;
}

#video-page .video-note .right-note .recommend-lesson {
  margin-top: 20px;
  background-color: #fff;
  border-radius: 10px;
}

#video-page .video-note .right-note .ai-tools {
  margin-top: 20px;
  background-color: #fff;
  border-radius: 10px;
}
</style>